using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Imformation : MonoBehaviour
{
    public int order;
    public bool needdestory;
    private MeshRenderer meshRenderer;
    private void Awake()
    {
        meshRenderer = GetComponent<MeshRenderer>();
        meshRenderer.sortingOrder = order;
    }
    // Start is called before the first frame update
    void Start()
    {
        if (needdestory)
        {
            Destroy(gameObject, .5f);
        }
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
